package _06对象流;

import java.io.Serializable;

public class Warrior implements Serializable{
	
	int id;
	String name;
	String influence;
	int iq;
	int wuli;
	int tongshuai;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getInfluence() {
		return influence;
	}
	public void setInfluence(String influence) {
		this.influence = influence;
	}
	public int getIq() {
		return iq;
	}
	public void setIq(int iq) {
		this.iq = iq;
	}
	public int getWuli() {
		return wuli;
	}
	public void setWuli(int wuli) {
		this.wuli = wuli;
	}
	public int getTongshuai() {
		return tongshuai;
	}
	public void setTongshuai(int tongshuai) {
		this.tongshuai = tongshuai;
	}
	public Warrior(int id, String name, String influence, int iq, int wuli, int tongshuai) {
		super();
		this.id = id;
		this.name = name;
		this.influence = influence;
		this.iq = iq;
		this.wuli = wuli;
		this.tongshuai = tongshuai;
	}
	public Warrior() {
		super();
		// TODO Auto-generated constructor stub
	}
	@Override
	public String toString() {
		return "编号："+id+" \t "+"姓名："+name+" \t "+"势力："+influence+" \t "+
				"智商："+iq+" \t "+"武力："+wuli+" \t "+"统帅："+tongshuai;
	}
	
	
}